import proxy from 'koa-proxies';

const config = global.CONFIG.api;
export const apiProxy = proxy('/api', { target: `http://${config.host}:${config.port}`,changeOrigin: true });

export default apiProxy;
